home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / appletalk / netatalk / afs / afskrbsrc.sit.hqx / AFS Kerberos 1.0B0 / DAEntry.a < prev    next >
Encoding:
Text File  |  1991-03-08  |  2.9 KB  |  84 lines

  1. ***************************************************************************
  2. ****    
  3. ****    DESK ACCESSORY and DEVICE DRIVER Entry Code/Data
  4. ****    
  5. ***************************************************************************
  6. ; * Copyright (c) 1990 Regents of The University of Michigan.
  7. ; * All Rights Reserved.
  8. ; *
  9. ; * Permission to use, copy, modify, and distribute this software
  10. ; * and its documentation for any purpose and without fee is hereby
  11. ; * granted, provided that the above copyright notice appears in all
  12. ; * copies and that both that copyright notice and this permission
  13. ; * notice appear in supporting documentation, and that the name of
  14. ; * The University of Michigan not be used in advertising or
  15. ; * publicity pertaining to distribution of the software without
  16. ; * specific, written prior permission. This software is supplied as
  17. ; * is without expressed or implied warranties of any kind.
  18. ; *
  19. ; *    ITD Research Systems
  20. ; *    University of Michigan
  21. ; *    535 W. William Street
  22. ; *    Ann Arbor, Michigan
  23. ; *    +1-313-936-2652
  24. ; *    netatalk@terminator.cc.umich.edu
  25. ; *
  26.  
  27.  
  28.         STRING    PASCAL
  29.  
  30.         INCLUDE 'ToolEqu.a'
  31.         INCLUDE 'SysEqu.a'
  32.         
  33.         CASE OBJ
  34. **************************** DESK ACCESSORY ENTRY **************************
  35.         IMPORT %DRVRMain
  36.  
  37. DAEntry Proc Export                                    ; See Device Manager IM:2
  38. ;
  39. ; First we need to set the drvrFlags (IM II-188), choose from
  40. ;
  41. ;    dReadEnable        enable driver for read operations             (drivers only)
  42. ;    dWritEnable        enable driver for writing                     (drivers only)
  43. ;    dCtlEnable        enable driver/da for control operations        
  44. ;    dStatEnable        enable driver/da for status operations        (drivers only)
  45. ;    dNeedGoodBye    driver/da needs a "goodbye kiss"
  46. ;    dNeedTime        driver/da needs "main thread" time
  47. ;    dNeedLock        driver will be accessed at interrupt level    (drivers only)
  48. ;
  49.     DC.B        (1<<dCtlEnable)                        ; control flags set
  50.     DC.B        0                                    ; Lower byte is unused
  51. ;
  52. ; Next is the the drvrDelay (IM II-188), set only if dNeedTime flag set above
  53. ;
  54.     DC.W        5*60                                ; 5 sec periodic update
  55. ;
  56. ; Next is the the drvrEMask (IM I-444), which events DA can respond to...
  57. ; Must be NIL for drivers, for DA's choose from
  58. ;    mButDwnEvt        mouse button down is event 1
  59. ;    keyDwnEvt        key down is event 3
  60. ;    keyUpEvt        key up is event 4
  61. ;    autoKeyEvt        auto-repeated key is event 5
  62. ;    updatEvt        update event
  63. ;    activateEvt        activate/deactive event
  64. ;
  65.     DC.W        ( 1<<activateEvt | 1<<updatEvt | 1<<keyDwnEvt | 1<<autoKeyEvt )
  66. ;
  67. ; Next is the the drvrMenu (IM I-444), Menu ID of DA's menu, or NIL
  68. ;
  69.     DC.W        0                                    ; No associated menu
  70. ;
  71. ; Next are the offsets to the main routines of the driver/DA
  72. ;
  73.     DC.W        %DRVRMain - DAEntry                    ; Open routine
  74.     DC.W        %DRVRMain - DAEntry +4                ; Prime - unused for DA's
  75.     DC.W        %DRVRMain - DAEntry +8                ; Control
  76.     DC.W        %DRVRMain - DAEntry +12                ; Status - unused for DA's
  77.     DC.W        %DRVRMain - DAEntry +16             ; Close
  78.  
  79. DAName
  80.     DC.B        'AFS Log'                             ; DA/DRVR Name
  81.     ORG            DAName+32                            ; Pad string out to 32 bytes
  82.  
  83.     END
  84.